<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Ecma 8</title>
</head>
<body>
<script type="text/javascript">
//    console.log('es8'.padStart(2));
//    console.log('es8'.padStart(5));
//    console.log('es8'.padStart(6,'woof'));
//    console.log('es8'.padStart(14,'wow'));
//    console.log('es8'.padStart(7,'0'));
//    console.log('es8'.padEnd(2));
//    console.log('es8'.padEnd(5));
//    console.log('es8'.padEnd(6,'woof'));
//    console.log('es8'.padEnd(14,'wow'));
//    console.log('es8'.padEnd(7,'6'));

   /* const obj={x:'xxx',y:1};
    console.log(Object.entries(obj));
    const obj1=['e','s','8'];
    console.log(Object.entries(obj1));
    const obj2={10:'xxx',1:'yyy',3:'zzz'};
    console.log(Object.entries(obj2));*/
   var foo=(22.4/4.56)|0;
   console.log(foo);
   var bar=~~(15.56/4.13);
   console.log(bar);

   var  a=111,b=2222;a=[b,b=a][0];
   console.log(a);
   console.log(b);
   console.log([b,b=a]);

</script>
</body>
</html>